<template>
	<view class="header-fiexd" :style="{opacity: opacity}">
		<view class="status-contents"></view>
		<view class="header-wapper">
			<text class="name">{{nieName}}</text>
			<view class="setting">
				<text class="uni-icon uni-icon-gear-filled"></text>
				<tex>设置</tex>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'header-fiexd',
		props: {
			opacity: String,
			nieName: String
		}
	}
</script>

<style lang="scss" scoped>
	@import "../../../common/scss/_common.scss";
	@import "../../../common/css/icon.css";
	
	.status-contents {
		height: var(--status-bar-height);
	}
	.header-fiexd {
		position: fixed;
		box-sizing: border-box;
		top: 0;
		padding: 0 ws(15);
		width: 100%;
		display: flex;
		flex-direction: column;
		background-color: #FFFFFF;
		box-shadow: ws(0) ws(1) ws(3) rgba(#000,.1);
		z-index: 1000;
		.header-wapper {
			height: ws(44);
			display: flex;
			color: #000;
			align-items: center;
			justify-content: space-between;
			.name{
				font-size: ws(20);
			}
			.setting{
				display: flex;
				align-items: center;
			}
		}
	}
	
</style>
